package com.myapp.ruyixing;

import android.content.Context;
import android.text.TextUtils;

import com.baidu.location.BDLocation;
import com.myapp.ruyixing.utils.LoginHelper;

public class Config {

	public static boolean DEBUG = true;

	public static boolean sLocated = false;
	public static BDLocation sMyLocation = new BDLocation();

	 public static String MAP_KEY_FOR_APP = "gvA1S8NMBCuH0P9IZxpyPVtA";
//	public static String MAP_KEY_FOR_APP = "vVAErKDV8jhkQG6SIZ5zyhhG";// debug
	public static String MAP_KEY_FOR_SHOP = "62uxCG4VimRM4VYy7NYfBE3M";

	// beijing: 3362
	public static String sCityId = "3361";
	public static String sCityName = "泰安";

	public static String VOICE_RECOGNAZE_APP_ID = "526f46c7";

	public static String RUYIXING_PACKAGE_NAME = "com.myapp.ruyixing";
	public static String SHOP_MANAGER_PACKAGE_NAME = "com.myapp.ruyixing.shopmanager";

	public static boolean isShopManagerVersion(Context context) {
		return SHOP_MANAGER_PACKAGE_NAME.equals(context.getPackageName());

		// return false;
	}

	public static boolean isShopManagerVersionAndNotBinded(Context context) {
		return isShopManagerVersion(context)
				&& TextUtils.isEmpty(LoginHelper.getInstance().getBDUSS());
	}
}